﻿/*
 * 可选 Fact chunk
 */

namespace RIFF.Chunk
{
    /// <summary>
    /// Fact chunk
    /// </summary>
    public class Fact : Chunk
    {
        /// <summary>
        /// 克隆一个 Chunk，将其解释为 Format Chunk
        /// </summary>
        /// <exception cref="ChunkIdException"/>
        /// <param name="chunk">克隆源</param>
        public Fact(Chunk chunk) : base(chunk)
        {
            if (chunk.Id.ToString() != "fact")
            {
                throw new ChunkIdException("fact", Id.ToString());
            }
        }
    }
}